home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Errors / VolumeError.h < prev    next >
Text File  |  2000-06-23  |  321b  |  25 lines

  1. // VolumeError.h
  2.  
  3. #ifndef VolumeError_h
  4. #define VolumeError_h
  5.  
  6. #ifndef OSError_h
  7. #include "OSError.h"
  8. #endif
  9.  
  10. class VolumeError: public OSError
  11.   {
  12.     public:
  13.         VolumeError( OSErr error )
  14.           : OSError( error )
  15.           {}
  16.   };
  17.  
  18. inline void ThrowVolumeError( OSErr e )
  19.   {
  20.     if ( e != noErr )
  21.         throw VolumeError(e);
  22.   }
  23.  
  24. #endif
  25.